﻿<UserControl x:Class="TibcoQueueMonitor.Controls.Profile"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="170" d:DesignWidth="500" Height="Auto">
    <Grid Height="Auto" HorizontalAlignment="Stretch" Margin="0" Name="gridProfile" VerticalAlignment="Stretch" Width="Auto">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="500*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="60" MaxHeight="60" MinHeight="60" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <GroupBox Header="EMS Server Profiles" HorizontalAlignment="Stretch" Name="grpbProfiles" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Grid.ColumnSpan="2" Grid.RowSpan="2">
            <Grid Height="Auto" Width="Auto" Name="gridGroupBox">
                <Grid.RowDefinitions>
                    <RowDefinition Height="40" MaxHeight="40" MinHeight="40" />
                    <RowDefinition Height="140*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="400*" />
                    <ColumnDefinition Width="90" MaxWidth="90" MinWidth="90" />
                </Grid.ColumnDefinitions>
                <ComboBox Height="23" Margin="6,6,6,0" Name="cmbServerProfiles" VerticalAlignment="Top" SelectionChanged="cmbServerProfiles_SelectionChanged" IsEditable="True" DisplayMemberPath="ProfileDisplayName" Grid.ColumnSpan="2" Grid.RowSpan="2" />
                <Grid Height="Auto" HorizontalAlignment="Stretch" Margin="1,0,0,0" Name="gridButtons" VerticalAlignment="Stretch" Width="Auto" Grid.Column="1" Grid.Row="1">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="20*" MinHeight="20" />
                        <RowDefinition Height="20*" MinHeight="20" />
                        <RowDefinition Height="20*" MinHeight="20" />
                    </Grid.RowDefinitions>
                    <Button Content="Save Profile" Height="Auto" Name="btnSaveProfile" Width="Auto" Click="btnSaveProfile_Click" VerticalContentAlignment="Center" Margin="0" />
                    <Button Content="Clear Fields" Height="Auto" Name="btnClearProfileFields" Width="Auto" Click="btnClearProfileFields_Click" VerticalContentAlignment="Center" Margin="0" Grid.Row="1" />
                    <Button Content="Delete Profile" Name="btnDeleteProfile" Width="Auto" Click="btnDeleteProfile_Click" VerticalContentAlignment="Center" Margin="0" Grid.Row="2" />
                    <Button Content="Confirm" Height="Auto" Margin="0" Name="btnConfirm" VerticalContentAlignment="Center" Width="Auto" Grid.Row="1" Grid.RowSpan="1" Visibility="Hidden" Click="btnConfirm_Click" IsTabStop="False" />
                    <Button Content="Cancel" Height="Auto" Margin="0" Name="btnCancel" VerticalContentAlignment="Center" Width="Auto" Grid.Row="2" Grid.RowSpan="1" Visibility="Hidden" Click="btnCancel_Click" IsTabStop="False" />
                </Grid>
            </Grid>
        </GroupBox>
        <TextBox Height="23" HorizontalAlignment="Left" Margin="12,19,0,0" Name="txtbEmsHostname" VerticalAlignment="Top" Width="321" Grid.Row="1" FontFamily="Courier New" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="339,19,0,0" Name="txtbEmsPort" VerticalAlignment="Top" Width="58" Grid.Row="1" FontFamily="Courier New" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="12,66,0,0" Name="txtbUsername" VerticalAlignment="Top" Width="120" Grid.Row="1" FontFamily="Courier New" />
        <PasswordBox Grid.Row="1" Height="23" HorizontalAlignment="Left" Margin="138,66,0,0" Name="pboxPassword" VerticalAlignment="Top" Width="120" FontFamily="Courier New" />
        <Label Content="Username" FontSize="10" HorizontalAlignment="Left" Margin="12,89,0,0" Name="lblUsername" Grid.Row="1" Padding="1" VerticalAlignment="Top" />
        <Label Content="Password" FontSize="10" HorizontalAlignment="Left" Margin="138,89,0,0" Name="lblPassword" Padding="1" Grid.Row="1" VerticalAlignment="Top" />
        <Label Content="EMS Server Hostname" FontSize="10" HorizontalAlignment="Left" Margin="13,42,0,0" Name="lblEmsServer" Padding="1" Grid.Row="1" VerticalAlignment="Top" />
        <Label Content="Port" FontSize="10" HorizontalAlignment="Left" Margin="339,42,0,0" Name="lblPort" Padding="1" Grid.Row="1" VerticalAlignment="Top" />
    </Grid>
</UserControl>
